import React, { Component } from 'react';
import { Route, Switch, Redirect } from 'react-router-dom'

// 聊天室 /chat
import  Chat  from 'pages/chat/Chat.jsx'

// 首页
// 左边重新选择定位
import ReChooseLocationL from 'pages/home/childView/ReChooseLocation'
// 右边重新选择定位
import ReChooseLocationR from 'pages/home/childView/ReChooseLocation'


// 搜索
import Search from 'pages/home/childView/Search'
// 消息盒子
import InfoBox from 'pages/home/childView/InfoBox'

// 昵称消息
import Message from 'pages/home/childView/Message'
// 帮助中心
import Helping from 'pages/home/childView/Helping'
// 等级增减提示
import Level from 'pages/home/childView/Level'
// 系统公告
import Notice from 'pages/home/childView/Notice'
// 活动提示
import Activity from 'pages/home/childView/Activity'
// 签到
import Sign from 'pages/home/childView/Sign'
// 新手任务
import NewTask from 'pages/home/childView/NewTask'

// 诚信公约
import Faith from 'pages/home/childView/Faith'
// 等级规则
import Rule from 'pages/home/childView/Rule'
// 到账中心
import  BillCenter from 'pages/home/childView/BillCenter'



class HomeChildRouter extends Component {
  render() {
    return (
      <Switch>
        {/* 左边重新选择定位 */}
        <Route path='/homeChildRouter/reChooseLocationL' component={ReChooseLocationL}></Route>
        {/* 右边重新选择定位 */}
        <Route path='/homeChildRouter/reChooseLocationR' component={ReChooseLocationR}></Route>
      
         {/* 搜索 */}
         <Route path="/homeChildRouter/search" component={Search}></Route>
        {/* 消息盒子 */}
        <Route path='/homeChildRouter/infoBox' component={InfoBox}></Route>

          {/* 昵称消息 */}
        <Route path='/homeChildRouter/message' component={Message}></Route>
        {/* 帮助中心  */}
        <Route path='/homeChildRouter/helping' component={Helping}></Route>
        {/* 等级增加提示 */}
        <Route path='/homeChildRouter/level' component={Level}></Route>
        {/* 系统公告  */}
        <Route path='/homeChildRouter/notice' component={Notice}></Route>
        {/* 活动提示  */}
        <Route path='/homeChildRouter/activity' component={Activity}></Route>
        {/* 签到 */}
        <Route path="/homeChildRouter/sign" component={Sign}></Route>
        {/* 新手任务 */}
        <Route path='/homeChildRouter/newTask' component={NewTask}></Route>
        {/* 诚信公约 */}
        <Route path="/homeChildRouter/faith" component={Faith}></Route>
        {/* 等级规则 */}
        <Route path="/homeChildRouter/rule" component={Rule}></Route>
        {/* 到账中心 */}
        <Route path="/homeChildRouter/billCenter" component={BillCenter}></Route>

        {/* 聊天室 */}
        <Route path="/homeChildRouter/chat" component={Chat}></Route>

        {/* 重定向 */}
        <Redirect from="/homeChildRouter" to="/index/home" exact></Redirect>

      </Switch>
    );
  }
}

export default HomeChildRouter;